package com.example.mybatisplus.tag.domain;

import com.example.mybatisplus.des.Sensitive;
import com.example.mybatisplus.des.SensitiveStrategy;
import lombok.Data;

/**
 * @Author longdeng
 * @Date 2020/9/17 0017 23:25
 */
@Data
public class User {

    private String userid;
    @Sensitive(strategy = SensitiveStrategy.USERNAME)
    private String name;
    private int age;
    /**
     * 乐观锁的版本号标识 初始化版本号为 1
     */
    private int version;
    /**
     * 流程标识 0-表示初始化，1-解析，2-运行，3-错误信息
     */
    private String lc;

    public User() {
    }

    public User(String userid, String name, int age, int version, String lc) {
        this.userid = userid;
        this.name = name;
        this.age = age;
        this.version = version;
        this.lc = lc;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getLc() {
        return lc;
    }

    public void setLc(String lc) {
        this.lc = lc;
    }
}
